package com.wyx.serves;


import org.apache.ibatis.session.SqlSession;

import com.wyx.dao.UserDao;
import com.wyx.entity.User;
import com.wyx.factory.SqlSessionFactoryUtil;

public class UserServes {
	public User userSign(String username, String userpass) {
		SqlSession se = null;
		se = SqlSessionFactoryUtil.getSqlSession();
		UserDao userDao=se.getMapper(UserDao.class); 
		User user=userDao.userSign(username, userpass);
		return user;
	}
	
}
